import request from '@/utils/request'

export const loginAPI = data => request({
  url: '/api/user-service/user/login',
  method: 'post',
  data
})

// 封装login验证码接口
export const yzmAPI = clientToken => request({
  url: `/api/user-service/user/imageCode/${clientToken}`,
  method: 'GET'
})

/**
 *  获取用户的基本资料
 *
 * **/
export const getUserInfo = id => request({
  url: `/api/user-service/user/${id}`
})
